import  axios from 'axios'

export default class OfficialService {
    static officialService =null;
    static getInstance(){
        if(this.officialService == null){
            this.officialService = new OfficialService()
        }
        return this.officialService
    }

    /**
     * 用印统计
     * @returns {Promise<AxiosResponse<T>>}
     */
    list(params){
        return axios.get("http://localhost/apply",{
            params
        })
    }

    /**
     * 文件导出
     * @param params
     * @returns {Promise<AxiosResponse<T>>}
     */
    officialDc(params){

        return axios.get("http://localhost/apply/dcExcel",{
            responseType: 'blob',
            params:params
        })
    }
}